package com.kylin.module.community.forms;

import java.util.Date;

import org.apache.struts.action.ActionForm;

public class PostForm extends ActionForm {

     private static final long serialVersionUID = 1L;
    // Fields    
     private Long id;
	 private Long  fkppostid;
	 private String  title;	 
	 private String  content;
	 private String  language;

	 
     //private Long userid;
     private Long catpostid;
     private Long tagid;
     
     
	 private String  targetlang;
	 private Long    interestid;
	 private String  country;
	 private String  username;
	 private String  memberlanguage;     
   
    // Property accessors
    
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getFkppostid() {
        return this.fkppostid;
    }

    public void setFkppostid(Long fkppostid) {
    	this.fkppostid = fkppostid;
    }
    
    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    
    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    public String getLanguage() {
        return this.language;
    }
    
    public void setLanguage(String language) {
        this.language = language;
    }


	
	// parent table: User
    // from session
	/*
    public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}
	*/
	
	// parent table: CatPost
	
    public Long getCatpostid() {
		return catpostid;
	}

	public void setCatpostid(Long catpostid) {
		this.catpostid = catpostid;
	}
	
	
	// parent table: Tag
	
    public Long getTagid() {
		return tagid;
	}

	public void setTagid(Long tagid) {
		this.tagid = tagid;
	}
	
	
    public Long getInterestid() {
        return this.interestid;
    }

    public void setInterestid(Long interestid) {        
        this.interestid = interestid;
    }

    public String getUsername() {
        return this.username;
    }
    
    
    public void setUsername(String username) {
        this.username= username;
    }    
    
    public String getCountry() {
        return this.country;
    }
    
    
    public void setCountry(String country) {
        this.country = country;
    }
    
    public String getTargetlang() {
        return this.targetlang;
    }
    
    public void setTargetlang(String targetlang) {
        this.targetlang = targetlang;
    }

    public String getMemberlanguage() {
        return this.memberlanguage;
    }
    
    public void setMemberlanguage(String memberlanguage) {
        this.memberlanguage = memberlanguage;
    }	
	
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
	sb.append("\n id                  ="+id              );
	sb.append("\n fkppostid           ="+fkppostid       );	
	sb.append("\n catpostid           ="+catpostid       );
	sb.append("\n tagid               ="+tagid           );

	sb.append("\n language            ="+language        );	
	sb.append("\n title               ="+title           );	
	sb.append("\n content             ="+content         );
	sb.append("\n username            ="+username        );
	sb.append("\n memberlanguage      ="+memberlanguage  );	
	sb.append("\n targetlang          ="+targetlang      );
	sb.append("\n country             ="+country         );	
	sb.append("\n interestid          ="+interestid      );		
	return sb.toString();
	}	
	
	
}